﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<kysec.RAL.EFToMySql.tb_news>>" %>
<%@ Import Namespace="kysec.RAL.EFToMySql" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc"%>

	<div class="news_content_content">
		<ul>
        <%string type = Request.QueryString["type"]; if (Model.Count != 0)
     {
         for (int i = 0; i < Model.Count;i++ )
         {%>
			<li><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/News/NewsInfo?id=<%=kysec.CR.Common.EncodeByBase64.Encode(Model[i].c_uq_newId.ToString()) %>&type=<%=type %>" title="<%=Model[i].c_vc_title %>"><%=Model[i].c_vc_title.Length >15?Model[i].c_vc_title.Substring(0,15):Model[i].c_vc_title %></a><span>[ <%=Model[i].c_dt_publishDate.ToShortDateString() %> ]</span></li>
         <%}
     }%>
		</ul>
	</div>
	<%=Html.AjaxPager(Model, new PagerOptions() { CssClass = "mvcPager", PageIndexParameterName = "id", ShowMorePagerItems = false, AlwaysShowFirstLastPageNumber = false, ShowPageIndexBox = false, PageIndexBoxWrapperFormatString = "页{0}" }, new AjaxOptions() { UpdateTargetId = "page" })%>

